home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / prog_c / cuj0696.zip / DWYER.ZIP / SPECTRAL.TST / MAKEFILE < prev    next >
Text File  |  1996-04-04  |  1KB  |  64 lines

  1. #
  2. # makefile for spectral test
  3. #
  4.  
  5. CC    = cl -c
  6. BCC    = bcc -c
  7. BFLAGS    = -d -I. -D__PROTO__
  8.  
  9. CFLAGS    = -nologo $(OPTIMIZ) -I. -W4 -D__PROTO__ $(TEST) -Tc
  10.  
  11. .SUFFIXES:
  12. .SUFFIXES: .exe .obj .cx
  13.  
  14. .cx.obj:
  15.     $(CC) $(CFLAGS) $<
  16.  
  17. .obj.exe:
  18.     cl -nologo $<  /link extended $(LFLAGS)
  19.  
  20. .cx.exe:
  21.     $(CC) $(CFLAGS) $<
  22.     cl -nologo $<  /link extended $(LFLAGS)
  23.  
  24. LFLAGS    = /NOI /E /PACKC /F /ST:10240
  25. LINK    = /link $(LFLAGS) testsubs
  26.  
  27. OPTIMIZ    = -Ot -Gs -Gy#-Oselg #-Oset #-qc
  28.  
  29. spectral.exe:    spectral.obj  extended.lib
  30.     cl -nologo spectral /link extended $(LFLAGS)
  31.  
  32. extended.lib:    ..\qfloat\qfloatf.lib
  33.     cp     ..\qfloat\qfloatf.lib  extended.lib
  34.  
  35. tstepow.exe:    tstepow.obj
  36.     cl -nologo tstepow /link extended $(LFLAGS)
  37.  
  38. SPECTRAL_SRCS = spectral.cx\
  39.         calcmert.cx\
  40.         euclstep.cx\
  41.         getctlda.cx\
  42.         getgcd.cx\
  43.         prtspdat.cx\
  44.         putxflt.cx\
  45.         putxfrac.cx\
  46.         putxint.cx\
  47.         xdot.cx\
  48.         xmatprt.cx\
  49.         specdefs.h\
  50.         xtendefs.h\
  51.         xqhead.h
  52.  
  53. spectral.obj:    $(SPECTRAL_SRCS)
  54.  
  55. save:
  56.     -pkzip -u -x*.bak b:spectral makefile *.cx *.h *.inp inp*.*\
  57.         *.lib *.doc *.txt
  58.  
  59. xcg:
  60.     $(CC) /EP /P $(CFLAGS) spectral.cx
  61.     xcg main spectral.i | awk -f $(HOME)/extlist.awk | sed s/^........// |\
  62.         sed "s/ [.[]..*]$$//" | cat -n > spectral.xcg
  63.     del spectral.i
  64.